package com.tk.ehr.controller;

import com.tk.ehr.model.entity.SysUser;
import com.tk.ehr.service.SysUserService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysUser")
public class SysUserController {

  @Resource
  private SysUserService sysUserService;

  @GetMapping("/selectByPrimaryKey")
  public SysUser selectByPrimaryKey(Long userId) {
    return sysUserService.selectByPrimaryKey(userId);
  }

}
